<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id}">
	
	<div class="panel panel-default panel-intro">
		<div class="panel-heading">
			<ul class="nav nav-tabs">
				<li class="active"><a href="#basic" data-toggle="tab">资金情况</a></li>
			</ul>
		</div>
		<div class="panel-body">
			<div class="form-group">
				<label for="c-totalmoney" class="control-label col-xs-12 col-sm-2">{:__('预算金额')}:</label>
				<div class="col-xs-12 col-sm-3">
					<input id="c-totalmoney" data-rule="required" class="form-control" name="row[totalmoney]" type="text" step="0.01" value="{:number_format($row.totalmoney,2)}">
				</div>
				<label for="c-biddermoney" class="control-label col-xs-12 col-sm-2">{:__('合同金额')}:</label>
				<div class="col-xs-12 col-sm-3">
					<input id="c-biddermoney" data-rule="required" class="form-control" name="row[biddermoney]" type="text" step="0.01" value="{:number_format($row.biddermoney,2)}">
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-xs-12 col-sm-2">{:__('预算金额大写')}:</label>
				<div class="col-xs-12 col-sm-3">
					<span id="c-upcase_totalmoney" class="form-control">{:numToRmb($row.totalmoney)}</span>
				</div>
				<label for="c-biddermoney" class="control-label col-xs-12 col-sm-2">{:__('合同金额大写')}:</label>
				<div class="col-xs-12 col-sm-3">
					<span id="c-upcase_biddermoney" class="form-control">{:numToRmb($row.biddermoney)}</span>
				</div>
			</div>
			<div class="form-group">
				<label for="c-biddermoney" class="control-label col-xs-12 col-sm-2">{:__('执行比例')}:</label>
				<div class="col-xs-12 col-sm-3">
					<span class="execute_rate form-control">{$row.execute_rate}</span>
				</div>
				<label for="c-paymenttimes" class="control-label col-xs-12 col-sm-2">{:__('支付次数')}:</label>
				<div class="col-xs-12 col-sm-3">
					<select id="c-paymenttimes" data-rule="required" name="row[paymenttimes]" class="form-control selectpicker">
						<option value="1" {if $row.paymenttimes eq 1}selected{/if}>一次支付</option>
						<option value="2" {if $row.paymenttimes eq 2}selected{/if}>二次支付</option>
						<option value="3" {if $row.paymenttimes eq 3}selected{/if}>三次支付</option>
						<option value="4" {if $row.paymenttimes eq 4}selected{/if}>四次支付</option>
						<option value="5" {if $row.paymenttimes eq 5}selected{/if}>五次支付</option>
						<option value="6" {if $row.paymenttimes eq 6}selected{/if}>六次支付</option>
						<option value="7" {if $row.paymenttimes eq 7}selected{/if}>七次支付</option>
						<option value="8" {if $row.paymenttimes eq 8}selected{/if}>八次支付</option>
						<option value="9" {if $row.paymenttimes eq 9}selected{/if}>九次支付</option>
						<option value="10" {if $row.paymenttimes eq 10}selected{/if}>十次支付</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="c-fundingsource" class="control-label col-xs-12 col-sm-2">{:__('资金来源')}:</label>
				<div class="col-xs-12 col-sm-8">
					<textarea id="c-fundingsource" name="row[fundingsource]" data-rule="" class="form-control">{$row.fundingsource}</textarea>
				</div>
			</div>

			<div id="paymentimes-1" class="col-xs-12 col-sm-10 col-sm-offset-1 paymentimes" style="background-color: #eeeeee;margin-bottom: 10px;">
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('第一次付款')}</label>
					<input type="hidden" name="row[paymentimes-1][id]" value="{if isset($row['paymentimes-1']['id'])}{$row['paymentimes-1']['id']}{/if}" />
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('约定支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymenttime1" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-1][paymenttime]" type="text" value="{if isset($row['paymentimes-1']['paymenttime'])&&$row['paymentimes-1']['paymenttime']}{$row['paymentimes-1']['paymenttime']|datetime}{/if}">
					</div>
					<label for="c-paymentmoney1" class="control-label col-xs-12 col-sm-2">{:__('支付金额')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymentmoney1" data-rule="" class="form-control paymentmoney" name="row[paymentimes-1][paymentmoney]" type="text" step="0.01" value="{if isset($row['paymentimes-1']['paymentmoney'])}{:number_format($row['paymentimes-1']['paymentmoney'],2)}{/if}">
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('实际支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-realpaymenttime1" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-1][realpaymenttime]" type="text" value="{if isset($row['paymentimes-1']['realpaymenttime'])&&$row['paymentimes-1']['realpaymenttime']}{$row['paymentimes-1']['realpaymenttime']|datetime}{/if}">
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付金额大写')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span id="c-upcase_paymentmoney1" class="form-control upper-paymentmoney">{if isset($row['paymentimes-1']['paymentmoney'])}{:numToRmb($row['paymentimes-1']['paymentmoney'])}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('是否付款')}:</label>
					<div class="col-xs-12 col-sm-4">
						{:build_radios('row[paymentimes-1][paymentstatus]', ['1'=>__('已付'), '0'=>__('未付')], isset($row['paymentimes-1']['paymentstatus'])?$row['paymentimes-1']['paymentstatus']:0)}
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付比例')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span class="pay-rate form-control">{if isset($row['paymentimes-1']['paymentmoney']) && $row.biddermoney!=0}{:round($row['paymentimes-1']['paymentmoney']*100/$row.biddermoney, 2)}%{/if}</span>
					</div>
					<label class="control-label col-xs-12 col-sm-2" style="text-align:left;display:none">{:__('累计比例')}:</label>
					<div class="col-xs-12 col-sm-2" style="margin-left: -35px;display:none">
						<span class="total-pay-rate form-control">{if isset($row['paymentimes-1']['leiji_payment_rate'])}{$row['paymentimes-1']['leiji_payment_rate']}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label for="c-paymentcondition1" class="control-label col-xs-12 col-sm-2">{:__('支付条件')}:</label>
					<div class="col-xs-12 col-sm-8">
						<textarea id="c-paymentcondition1" name="row[paymentimes-1][paymentcondition]" data-rule="" class="form-control">{if isset($row['paymentimes-1']['paymentcondition'])}{$row['paymentimes-1']['paymentcondition']}{/if}</textarea>
					</div>
				</div>
			</div>
			
			<div id="paymentimes-2" class="col-xs-12 col-sm-10 col-sm-offset-1 paymentimes" style="{if $row.paymenttimes >= 2}display:block;{else}display:none;{/if}background-color: #eeeeee;margin-bottom: 10px;">
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('第二次付款')}</label>
					<input type="hidden" name="row[paymentimes-2][id]" value="{if isset($row['paymentimes-2']['id'])}{$row['paymentimes-2']['id']}{/if}" />
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('约定支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymenttime2" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-2][paymenttime]" type="text" value="{if isset($row['paymentimes-2']['paymenttime'])&&$row['paymentimes-2']['paymenttime']}{$row['paymentimes-2']['paymenttime']|datetime}{/if}">
					</div>
					<label for="c-paymentmoney2" class="control-label col-xs-12 col-sm-2">{:__('支付金额')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymentmoney2" data-rule="" class="form-control paymentmoney" name="row[paymentimes-2][paymentmoney]" type="text" step="0.01" value="{if isset($row['paymentimes-2']['paymentmoney'])}{:number_format($row['paymentimes-2']['paymentmoney'],2)}{/if}">
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('实际支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-realpaymenttime2" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-2][realpaymenttime]" type="text" value="{if isset($row['paymentimes-2']['realpaymenttime'])&&$row['paymentimes-2']['realpaymenttime']}{$row['paymentimes-2']['realpaymenttime']|datetime}{/if}">
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付金额大写')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span id="c-upcase_paymentmoney2" class="form-control upper-paymentmoney">{if isset($row['paymentimes-2']['paymentmoney'])}{:numToRmb($row['paymentimes-2']['paymentmoney'])}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('是否付款')}:</label>
					<div class="col-xs-12 col-sm-4">
						{:build_radios('row[paymentimes-2][paymentstatus]', ['1'=>__('已付'), '0'=>__('未付')], isset($row['paymentimes-2']['paymentstatus'])?$row['paymentimes-2']['paymentstatus']:0)}
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付比例')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span class="pay-rate form-control">{if isset($row['paymentimes-2']['paymentmoney']) && $row.biddermoney!=0}{:round($row['paymentimes-2']['paymentmoney']*100/$row.biddermoney, 2)}%{/if}</span>
					</div>
					<label class="control-label col-xs-12 col-sm-2" style="text-align:left;display:none">{:__('累计比例')}:</label>
					<div class="col-xs-12 col-sm-2" style="margin-left: -35px;display:none">
						<span class="total-pay-rate form-control">{if isset($row['paymentimes-2']['leiji_payment_rate'])}{$row['paymentimes-2']['leiji_payment_rate']}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label for="c-paymentcondition2" class="control-label col-xs-12 col-sm-2">{:__('支付条件')}:</label>
					<div class="col-xs-12 col-sm-8">
						<textarea id="c-paymentcondition2" name="row[paymentimes-2][paymentcondition]" data-rule="" class="form-control">{if isset($row['paymentimes-2']['paymentcondition'])}{$row['paymentimes-2']['paymentcondition']}{/if}</textarea>
					</div>
				</div>
			</div>
			
			<div id="paymentimes-3" class="col-xs-12 col-sm-10 col-sm-offset-1 paymentimes" style="{if $row.paymenttimes >= 3}display:block;{else}display:none;{/if}background-color: #eeeeee;margin-bottom: 10px;">
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('第三次付款')}</label>
					<input type="hidden" name="row[paymentimes-3][id]" value="{if isset($row['paymentimes-3']['id'])}{$row['paymentimes-3']['id']}{/if}" />
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('约定支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymenttime3" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-3][paymenttime]" type="text" value="{if isset($row['paymentimes-3']['paymenttime'])&&$row['paymentimes-3']['paymenttime']}{$row['paymentimes-3']['paymenttime']|datetime}{/if}">
					</div>
					<label for="c-paymentmoney3" class="control-label col-xs-12 col-sm-2">{:__('支付金额')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymentmoney3" data-rule="" class="form-control paymentmoney" name="row[paymentimes-3][paymentmoney]" type="text" step="0.01" value="{if isset($row['paymentimes-3']['paymentmoney'])}{:number_format($row['paymentimes-3']['paymentmoney'],2)}{/if}">
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('实际支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-realpaymenttime3" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-3][realpaymenttime]" type="text" value="{if isset($row['paymentimes-3']['realpaymenttime'])&&$row['paymentimes-3']['realpaymenttime']}{$row['paymentimes-3']['realpaymenttime']|datetime}{/if}">
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付金额大写')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span id="c-upcase_paymentmoney3" class="form-control upper-paymentmoney">{if isset($row['paymentimes-3']['paymentmoney'])}{:numToRmb($row['paymentimes-3']['paymentmoney'])}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('是否付款')}:</label>
					<div class="col-xs-12 col-sm-4">
						{:build_radios('row[paymentimes-3][paymentstatus]', ['1'=>__('已付'), '0'=>__('未付')], isset($row['paymentimes-3']['paymentstatus'])?$row['paymentimes-3']['paymentstatus']:0)}
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付比例')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span class="pay-rate form-control">{if isset($row['paymentimes-3']['paymentmoney']) && $row.biddermoney!=0}{:round($row['paymentimes-3']['paymentmoney']*100/$row.biddermoney, 2)}%{/if}</span>
					</div>
					<label class="control-label col-xs-12 col-sm-2" style="text-align:left;display:none">{:__('累计比例')}:</label>
					<div class="col-xs-12 col-sm-2" style="margin-left: -35px;display:none">
						<span class="total-pay-rate form-control">{if isset($row['paymentimes-3']['leiji_payment_rate'])}{$row['paymentimes-3']['leiji_payment_rate']}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label for="c-paymentcondition3" class="control-label col-xs-12 col-sm-2">{:__('支付条件')}:</label>
					<div class="col-xs-12 col-sm-8">
						<textarea id="c-paymentcondition3" name="row[paymentimes-3][paymentcondition]" data-rule="" class="form-control">{if isset($row['paymentimes-3']['paymentcondition'])}{$row['paymentimes-3']['paymentcondition']}{/if}</textarea>
					</div>
				</div>
			</div>
			
			<div id="paymentimes-4" class="col-xs-12 col-sm-10 col-sm-offset-1 paymentimes" style="{if $row.paymenttimes >= 4}display:block;{else}display:none;{/if}background-color: #eeeeee;margin-bottom: 10px;">
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('第四次付款')}</label>
					<input type="hidden" name="row[paymentimes-4][id]" value="{if isset($row['paymentimes-4']['id'])}{$row['paymentimes-4']['id']}{/if}" />
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('约定支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymenttime4" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-4][paymenttime]" type="text" value="{if isset($row['paymentimes-4']['paymenttime'])&&$row['paymentimes-4']['paymenttime']}{$row['paymentimes-4']['paymenttime']|datetime}{/if}">
					</div>
					<label for="c-paymentmoney4" class="control-label col-xs-12 col-sm-2">{:__('支付金额')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymentmoney4" data-rule="" class="form-control paymentmoney" name="row[paymentimes-4][paymentmoney]" type="text" step="0.01" value="{if isset($row['paymentimes-4']['paymentmoney'])}{:number_format($row['paymentimes-4']['paymentmoney'],2)}{/if}">
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('实际支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-realpaymenttime4" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-4][realpaymenttime]" type="text" value="{if isset($row['paymentimes-4']['realpaymenttime'])&&$row['paymentimes-4']['realpaymenttime']}{$row['paymentimes-4']['realpaymenttime']|datetime}{/if}">
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付金额大写')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span id="c-upcase_paymentmoney4" class="form-control upper-paymentmoney">{if isset($row['paymentimes-4']['paymentmoney'])}{:numToRmb($row['paymentimes-4']['paymentmoney'])}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('是否付款')}:</label>
					<div class="col-xs-12 col-sm-4">
						{:build_radios('row[paymentimes-4][paymentstatus]', ['1'=>__('已付'), '0'=>__('未付')], isset($row['paymentimes-4']['paymentstatus'])?$row['paymentimes-4']['paymentstatus']:0)}
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付比例')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span class="pay-rate form-control">{if isset($row['paymentimes-4']['paymentmoney']) && $row.biddermoney!=0}{:round($row['paymentimes-4']['paymentmoney']*100/$row.biddermoney, 2)}%{/if}</span>
					</div>
					<label class="control-label col-xs-12 col-sm-2" style="text-align:left;display:none">{:__('累计比例')}:</label>
					<div class="col-xs-12 col-sm-2" style="margin-left: -35px;display:none">
						<span class="total-pay-rate form-control">{if isset($row['paymentimes-4']['leiji_payment_rate'])}{$row['paymentimes-4']['leiji_payment_rate']}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label for="c-paymentcondition4" class="control-label col-xs-12 col-sm-2">{:__('支付条件')}:</label>
					<div class="col-xs-12 col-sm-8">
						<textarea id="c-paymentcondition4" name="row[paymentimes-4][paymentcondition]" data-rule="" class="form-control">{if isset($row['paymentimes-4']['paymentcondition'])}{$row['paymentimes-4']['paymentcondition']}{/if}</textarea>
					</div>
				</div>
			</div>
			
			<div id="paymentimes-5" class="col-xs-12 col-sm-10 col-sm-offset-1 paymentimes" style="{if $row.paymenttimes >= 5}display:block;{else}display:none;{/if}background-color: #eeeeee;margin-bottom: 10px;">
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('第五次付款')}</label>
					<input type="hidden" name="row[paymentimes-5][id]" value="{if isset($row['paymentimes-5']['id'])}{$row['paymentimes-5']['id']}{/if}" />
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('约定支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymenttime5" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-5][paymenttime]" type="text" value="{if isset($row['paymentimes-5']['paymenttime'])&&$row['paymentimes-5']['paymenttime']}{$row['paymentimes-5']['paymenttime']|datetime}{/if}">
					</div>
					<label for="c-paymentmoney5" class="control-label col-xs-12 col-sm-2">{:__('支付金额')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymentmoney5" data-rule="" class="form-control paymentmoney" name="row[paymentimes-5][paymentmoney]" type="text" step="0.01" value="{if isset($row['paymentimes-5']['paymentmoney'])}{:number_format($row['paymentimes-5']['paymentmoney'],2)}{/if}">
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('实际支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-realpaymenttime5" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-5][realpaymenttime]" type="text" value="{if isset($row['paymentimes-5']['realpaymenttime'])&&$row['paymentimes-5']['realpaymenttime']}{$row['paymentimes-5']['realpaymenttime']|datetime}{/if}">
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付金额大写')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span id="c-upcase_paymentmoney5" class="form-control upper-paymentmoney">{if isset($row['paymentimes-5']['paymentmoney'])}{:numToRmb($row['paymentimes-5']['paymentmoney'])}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('是否付款')}:</label>
					<div class="col-xs-12 col-sm-4">
						{:build_radios('row[paymentimes-5][paymentstatus]', ['1'=>__('已付'), '0'=>__('未付')], isset($row['paymentimes-5']['paymentstatus'])?$row['paymentimes-5']['paymentstatus']:0)}
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付比例')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span class="pay-rate form-control">{if isset($row['paymentimes-5']['paymentmoney']) && $row.biddermoney!=0}{:round($row['paymentimes-5']['paymentmoney']*100/$row.biddermoney, 2)}%{/if}</span>
					</div>
					<label class="control-label col-xs-12 col-sm-2" style="text-align:left;display:none">{:__('累计比例')}:</label>
					<div class="col-xs-12 col-sm-2" style="margin-left: -35px;display:none">
						<span class="total-pay-rate form-control">{if isset($row['paymentimes-5']['leiji_payment_rate'])}{$row['paymentimes-5']['leiji_payment_rate']}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label for="c-paymentcondition5" class="control-label col-xs-12 col-sm-2">{:__('支付条件')}:</label>
					<div class="col-xs-12 col-sm-8">
						<textarea id="c-paymentcondition5" name="row[paymentimes-5][paymentcondition]" data-rule="" class="form-control">{if isset($row['paymentimes-5']['paymentcondition'])}{$row['paymentimes-5']['paymentcondition']}{/if}</textarea>
					</div>
				</div>
			</div>
			
			<div id="paymentimes-6" class="col-xs-12 col-sm-10 col-sm-offset-1 paymentimes" style="{if $row.paymenttimes >= 6}display:block;{else}display:none;{/if}background-color: #eeeeee;margin-bottom: 10px;">
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('第六次付款')}</label>
					<input type="hidden" name="row[paymentimes-6][id]" value="{if isset($row['paymentimes-6']['id'])}{$row['paymentimes-6']['id']}{/if}" />
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('约定支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymenttime6" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-6][paymenttime]" type="text" value="{if isset($row['paymentimes-6']['paymenttime'])&&$row['paymentimes-6']['paymenttime']}{$row['paymentimes-6']['paymenttime']|datetime}{/if}">
					</div>
					<label for="c-paymentmoney6" class="control-label col-xs-12 col-sm-2">{:__('支付金额')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymentmoney6" data-rule="" class="form-control paymentmoney" name="row[paymentimes-6][paymentmoney]" type="text" step="0.01" value="{if isset($row['paymentimes-6']['paymentmoney'])}{:number_format($row['paymentimes-6']['paymentmoney'],2)}{/if}">
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('实际支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-realpaymenttime6" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-6][realpaymenttime]" type="text" value="{if isset($row['paymentimes-6']['realpaymenttime'])&&$row['paymentimes-6']['realpaymenttime']}{$row['paymentimes-6']['realpaymenttime']|datetime}{/if}">
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付金额大写')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span id="c-upcase_paymentmoney6" class="form-control upper-paymentmoney">{if isset($row['paymentimes-6']['paymentmoney'])}{:numToRmb($row['paymentimes-6']['paymentmoney'])}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('是否付款')}:</label>
					<div class="col-xs-12 col-sm-4">
						{:build_radios('row[paymentimes-6][paymentstatus]', ['1'=>__('已付'), '0'=>__('未付')], isset($row['paymentimes-6']['paymentstatus'])?$row['paymentimes-6']['paymentstatus']:0)}
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付比例')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span class="pay-rate form-control">{if isset($row['paymentimes-6']['paymentmoney']) && $row.biddermoney!=0}{:round($row['paymentimes-6']['paymentmoney']*100/$row.biddermoney, 2)}%{/if}</span>
					</div>
					<label class="control-label col-xs-12 col-sm-2" style="text-align:left;display:none">{:__('累计比例')}:</label>
					<div class="col-xs-12 col-sm-2" style="margin-left: -35px;display:none">
						<span class="total-pay-rate form-control">{if isset($row['paymentimes-6']['leiji_payment_rate'])}{$row['paymentimes-6']['leiji_payment_rate']}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label for="c-paymentcondition6" class="control-label col-xs-12 col-sm-2">{:__('支付条件')}:</label>
					<div class="col-xs-12 col-sm-8">
						<textarea id="c-paymentcondition6" name="row[paymentimes-6][paymentcondition]" data-rule="" class="form-control">{if isset($row['paymentimes-6']['paymentcondition'])}{$row['paymentimes-6']['paymentcondition']}{/if}</textarea>
					</div>
				</div>
			</div>
			
			<div id="paymentimes-7" class="col-xs-12 col-sm-10 col-sm-offset-1 paymentimes" style="{if $row.paymenttimes >= 7}display:block;{else}display:none;{/if}background-color: #eeeeee;margin-bottom: 10px;">
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('第七次付款')}</label>
					<input type="hidden" name="row[paymentimes-7][id]" value="{if isset($row['paymentimes-7']['id'])}{$row['paymentimes-7']['id']}{/if}" />
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('约定支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymenttime7" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-7][paymenttime]" type="text" value="{if isset($row['paymentimes-7']['paymenttime'])&&$row['paymentimes-7']['paymenttime']}{$row['paymentimes-7']['paymenttime']|datetime}{/if}">
					</div>
					<label for="c-paymentmoney7" class="control-label col-xs-12 col-sm-2">{:__('支付金额')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymentmoney7" data-rule="" class="form-control paymentmoney" name="row[paymentimes-7][paymentmoney]" type="text" step="0.01" value="{if isset($row['paymentimes-7']['paymentmoney'])}{:number_format($row['paymentimes-7']['paymentmoney'],2)}{/if}">
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('实际支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-realpaymenttime7" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-7][realpaymenttime]" type="text" value="{if isset($row['paymentimes-7']['realpaymenttime'])&&$row['paymentimes-7']['realpaymenttime']}{$row['paymentimes-7']['realpaymenttime']|datetime}{/if}">
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付金额大写')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span id="c-upcase_paymentmoney7" class="form-control upper-paymentmoney">{if isset($row['paymentimes-7']['paymentmoney'])}{:numToRmb($row['paymentimes-7']['paymentmoney'])}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('是否付款')}:</label>
					<div class="col-xs-12 col-sm-4">
						{:build_radios('row[paymentimes-7][paymentstatus]', ['1'=>__('已付'), '0'=>__('未付')], isset($row['paymentimes-7']['paymentstatus'])?$row['paymentimes-7']['paymentstatus']:0)}
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付比例')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span class="pay-rate form-control">{if isset($row['paymentimes-7']['paymentmoney']) && $row.biddermoney!=0}{:round($row['paymentimes-7']['paymentmoney']*100/$row.biddermoney, 2)}%{/if}</span>
					</div>
					<label class="control-label col-xs-12 col-sm-2" style="text-align:left;display:none">{:__('累计比例')}:</label>
					<div class="col-xs-12 col-sm-2" style="margin-left: -35px;display:none">
						<span class="total-pay-rate form-control">{if isset($row['paymentimes-7']['leiji_payment_rate'])}{$row['paymentimes-7']['leiji_payment_rate']}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label for="c-paymentcondition7" class="control-label col-xs-12 col-sm-2">{:__('支付条件')}:</label>
					<div class="col-xs-12 col-sm-8">
						<textarea id="c-paymentcondition7" name="row[paymentimes-7][paymentcondition]" data-rule="" class="form-control">{if isset($row['paymentimes-7']['paymentcondition'])}{$row['paymentimes-7']['paymentcondition']}{/if}</textarea>
					</div>
				</div>
			</div>
			
			<div id="paymentimes-8" class="col-xs-12 col-sm-10 col-sm-offset-1 paymentimes" style="{if $row.paymenttimes >= 8}display:block;{else}display:none;{/if}background-color: #eeeeee;margin-bottom: 10px;">
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('第八次付款')}</label>
					<input type="hidden" name="row[paymentimes-8][id]" value="{if isset($row['paymentimes-8']['id'])}{$row['paymentimes-8']['id']}{/if}" />
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('约定支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymenttime8" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-8][paymenttime]" type="text" value="{if isset($row['paymentimes-8']['paymenttime'])&&$row['paymentimes-8']['paymenttime']}{$row['paymentimes-8']['paymenttime']|datetime}{/if}">
					</div>
					<label for="c-paymentmoney8" class="control-label col-xs-12 col-sm-2">{:__('支付金额')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymentmoney8" data-rule="" class="form-control paymentmoney" name="row[paymentimes-8][paymentmoney]" type="text" step="0.01" value="{if isset($row['paymentimes-8']['paymentmoney'])}{:number_format($row['paymentimes-8']['paymentmoney'],2)}{/if}">
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('实际支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-realpaymenttime8" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-8][realpaymenttime]" type="text" value="{if isset($row['paymentimes-8']['realpaymenttime'])&&$row['paymentimes-8']['realpaymenttime']}{$row['paymentimes-8']['realpaymenttime']|datetime}{/if}">
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付金额大写')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span id="c-upcase_paymentmoney8" class="form-control upper-paymentmoney">{if isset($row['paymentimes-8']['paymentmoney'])}{:numToRmb($row['paymentimes-8']['paymentmoney'])}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('是否付款')}:</label>
					<div class="col-xs-12 col-sm-4">
						{:build_radios('row[paymentimes-8][paymentstatus]', ['1'=>__('已付'), '0'=>__('未付')], isset($row['paymentimes-8']['paymentstatus'])?$row['paymentimes-8']['paymentstatus']:0)}
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付比例')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span class="pay-rate form-control">{if isset($row['paymentimes-8']['paymentmoney']) && $row.biddermoney!=0}{:round($row['paymentimes-8']['paymentmoney']*100/$row.biddermoney, 2)}%{/if}</span>
					</div>
					<label class="control-label col-xs-12 col-sm-2" style="text-align:left;display:none">{:__('累计比例')}:</label>
					<div class="col-xs-12 col-sm-2" style="margin-left: -35px;display:none">
						<span class="total-pay-rate form-control">{if isset($row['paymentimes-8']['leiji_payment_rate'])}{$row['paymentimes-8']['leiji_payment_rate']}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label for="c-paymentcondition8" class="control-label col-xs-12 col-sm-2">{:__('支付条件')}:</label>
					<div class="col-xs-12 col-sm-8">
						<textarea id="c-paymentcondition8" name="row[paymentimes-8][paymentcondition]" data-rule="" class="form-control">{if isset($row['paymentimes-8']['paymentcondition'])}{$row['paymentimes-8']['paymentcondition']}{/if}</textarea>
					</div>
				</div>
			</div>
			
			<div id="paymentimes-9" class="col-xs-12 col-sm-10 col-sm-offset-1 paymentimes" style="{if $row.paymenttimes >= 9}display:block;{else}display:none;{/if}background-color: #eeeeee;margin-bottom: 10px;">
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('第九次付款')}</label>
					<input type="hidden" name="row[paymentimes-9][id]" value="{if isset($row['paymentimes-9']['id'])}{$row['paymentimes-9']['id']}{/if}" />
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('约定支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymenttime9" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-9][paymenttime]" type="text" value="{if isset($row['paymentimes-9']['paymenttime'])&&$row['paymentimes-9']['paymenttime']}{$row['paymentimes-9']['paymenttime']|datetime}{/if}">
					</div>
					<label for="c-paymentmoney9" class="control-label col-xs-12 col-sm-2">{:__('支付金额')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymentmoney9" data-rule="" class="form-control paymentmoney" name="row[paymentimes-9][paymentmoney]" type="text" step="0.01" value="{if isset($row['paymentimes-9']['paymentmoney'])}{:number_format($row['paymentimes-9']['paymentmoney'],2)}{/if}">
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('实际支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-realpaymenttime9" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-9][realpaymenttime]" type="text" value="{if isset($row['paymentimes-9']['realpaymenttime'])&&$row['paymentimes-9']['realpaymenttime']}{$row['paymentimes-9']['realpaymenttime']|datetime}{/if}">
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付金额大写')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span id="c-upcase_paymentmoney9" class="form-control upper-paymentmoney">{if isset($row['paymentimes-9']['paymentmoney'])}{:numToRmb($row['paymentimes-9']['paymentmoney'])}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('是否付款')}:</label>
					<div class="col-xs-12 col-sm-4">
						{:build_radios('row[paymentimes-9][paymentstatus]', ['1'=>__('已付'), '0'=>__('未付')], isset($row['paymentimes-9']['paymentstatus'])?$row['paymentimes-9']['paymentstatus']:0)}
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付比例')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span class="pay-rate form-control">{if isset($row['paymentimes-9']['paymentmoney']) && $row.biddermoney!=0}{:round($row['paymentimes-9']['paymentmoney']*100/$row.biddermoney, 2)}%{/if}</span>
					</div>
					<label class="control-label col-xs-12 col-sm-2" style="text-align:left;display:none">{:__('累计比例')}:</label>
					<div class="col-xs-12 col-sm-2" style="margin-left: -35px;display:none">
						<span class="total-pay-rate form-control">{if isset($row['paymentimes-9']['leiji_payment_rate'])}{$row['paymentimes-9']['leiji_payment_rate']}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label for="c-paymentcondition9" class="control-label col-xs-12 col-sm-2">{:__('支付条件')}:</label>
					<div class="col-xs-12 col-sm-8">
						<textarea id="c-paymentcondition9" name="row[paymentimes-9][paymentcondition]" data-rule="" class="form-control">{if isset($row['paymentimes-9']['paymentcondition'])}{$row['paymentimes-9']['paymentcondition']}{/if}</textarea>
					</div>
				</div>
			</div>
			
			<div id="paymentimes-10" class="col-xs-12 col-sm-10 col-sm-offset-1 paymentimes" style="{if $row.paymenttimes >= 10}display:block;{else}display:none;{/if}background-color: #eeeeee;margin-bottom: 10px;">
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('第十次付款')}</label>
					<input type="hidden" name="row[paymentimes-10][id]" value="{if isset($row['paymentimes-10']['id'])}{$row['paymentimes-10']['id']}{/if}" />
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('约定支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymenttime10" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-10][paymenttime]" type="text" value="{if isset($row['paymentimes-10']['paymenttime'])&&$row['paymentimes-10']['paymenttime']}{$row['paymentimes-10']['paymenttime']|datetime}{/if}">
					</div>
					<label for="c-paymentmoney10" class="control-label col-xs-12 col-sm-2">{:__('支付金额')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-paymentmoney10" data-rule="" class="form-control paymentmoney" name="row[paymentimes-10][paymentmoney]" type="text" step="0.01" value="{if isset($row['paymentimes-10']['paymentmoney'])}{:number_format($row['paymentimes-10']['paymentmoney'],2)}{/if}">
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('实际支付时间')}:</label>
					<div class="col-xs-12 col-sm-4">
						<input id="c-realpaymenttime10" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[paymentimes-10][realpaymenttime]" type="text" value="{if isset($row['paymentimes-10']['realpaymenttime'])&&$row['paymentimes-10']['realpaymenttime']}{$row['paymentimes-10']['realpaymenttime']|datetime}{/if}">
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付金额大写')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span id="c-upcase_paymentmoney10" class="form-control upper-paymentmoney">{if isset($row['paymentimes-10']['paymentmoney'])}{:numToRmb($row['paymentimes-10']['paymentmoney'])}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-2">{:__('是否付款')}:</label>
					<div class="col-xs-12 col-sm-4">
						{:build_radios('row[paymentimes-10][paymentstatus]', ['1'=>__('已付'), '0'=>__('未付')], isset($row['paymentimes-10']['paymentstatus'])?$row['paymentimes-10']['paymentstatus']:0)}
					</div>
					<label class="control-label col-xs-12 col-sm-2">{:__('支付比例')}:</label>
					<div class="col-xs-12 col-sm-4">
						<span class="pay-rate form-control">{if isset($row['paymentimes-10']['paymentmoney']) && $row.biddermoney!=0}{:round($row['paymentimes-10']['paymentmoney']*100/$row.biddermoney, 2)}%{/if}</span>
					</div>
					<label class="control-label col-xs-12 col-sm-2" style="text-align:left;display:none">{:__('累计比例')}:</label>
					<div class="col-xs-12 col-sm-2" style="margin-left: -35px;display:none">
						<span class="total-pay-rate form-control">{if isset($row['paymentimes-10']['leiji_payment_rate'])}{$row['paymentimes-10']['leiji_payment_rate']}{/if}</span>
					</div>
				</div>
				<div class="form-group">
					<label for="c-paymentcondition10" class="control-label col-xs-12 col-sm-2">{:__('支付条件')}:</label>
					<div class="col-xs-12 col-sm-8">
						<textarea id="c-paymentcondition10" name="row[paymentimes-10][paymentcondition]" data-rule="" class="form-control">{if isset($row['paymentimes-10']['paymentcondition'])}{$row['paymentimes-10']['paymentcondition']}{/if}</textarea>
					</div>
				</div>
			</div>
		</div>
	</div>	
	
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('取消')}</button>
        </div>
    </div>
</form>
